package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.entity.Brand;
import com.leyou.pojo.dto.BrandDTO;

import java.util.List;

public interface BrandService extends IService<Brand> {
    List<BrandDTO> queryBrandsById(List<Long> ids);

    List<BrandDTO> queryBrandsByCategoryId(Long id);

    PageDTO<BrandDTO> queryBrandsPage(Integer page, Integer rows, String key);

    BrandDTO queryBrandById(String id);

    void addBrand(BrandDTO brandDTO, List<String> categoryIds);

    void updateBrand(List<String> categoryIds, BrandDTO brandDTO);

    void deleteBrandById(Long id);
}
